package com.dalin.framework.common.pager;

import com.dalin.framework.common.utils.StringUtils;

/*****************************************************************************
 * @content: header                                                          *
 * @author : 那建林                                                                                                                                 *
 * @crtDate: 2010-12-21                                                     *
 ****************************************************************************/
public class WsHeaderInfo implements java.io.Serializable {
	private String fieldLabel;
	private String sortable;
    private String name;
    private boolean hidden;
    private Integer width;
    private String renderer;
    
    
    public String toString() {
    	StringBuffer sb = new StringBuffer("{");
    	if (!StringUtils.isBlank(fieldLabel)) {
    		sb.append("fieldLabel: '").append(fieldLabel).append("', ");
    	}
    	if (!StringUtils.isBlank(name)) {
    		sb.append("name: '").append(name).append("', ");
    	}
    	if (!StringUtils.isBlank(sortable)) {
    		sb.append("sortable: '").append(sortable).append("', ");
    	}
    	if (width != null && width != 0) {
    		sb.append("width: ").append(width).append(", ");
    	}
    	if (!StringUtils.isBlank(renderer)) {
    		sb.append("renderer: ").append(renderer).append(", ");
    	}
    	sb.append("hidden: ").append(hidden);
    	return sb.append("}").toString();
    }
    
    
    
    
	public String getRenderer() {
		return renderer;
	}




	public void setRenderer(String renderer) {
		this.renderer = renderer;
	}




	public boolean isHidden() {
		return hidden;
	}
	public void setHidden(boolean hidden) {
		this.hidden = hidden;
	}
	public String getFieldLabel() {
		return fieldLabel;
	}
	public void setFieldLabel(String fieldLabel) {
		this.fieldLabel = fieldLabel;
	}
	public String getSortable() {
		return sortable;
	}
	public void setSortable(String sortable) {
		this.sortable = sortable;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getWidth() {
		return width;
	}
	public void setWidth(Integer width) {
		this.width = width;
	}
}
